<div id="page-wrapper" class="page">
<!-- #header -->
<div id="header">
	<!-- #header-inside -->
    <div id="header-inside" class="container_12 clearfix">
    	<!-- #header-inside-left -->
        <div id="header-inside-left" class="<?php print $page['search_area'] ? 'grid_8' : 'grid_12'; ?>">
          <?php if ($logo): ?>
          <a href="<?php print check_url($front_page); ?>" title="<?php print t('Home'); ?>" rel="home" id="logo"><img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" /></a>
          <?php endif; ?>
          <?php if ($site_name || $site_slogan): ?>
            <div id="name-and-slogan"<?php if ($hide_site_name && $hide_site_slogan) { print ' class="element-invisible"'; } ?>>

              <?php if ($site_name): ?>
                <?php if ($title): ?>
                  <div id="site-name"<?php if ($hide_site_name) { print ' class="element-invisible"'; } ?>>
                    <strong>
                      <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
                    </strong>
                  </div>
                <?php else: /* Use h1 when the content title is empty */ ?>
                  <h1 id="site-name"<?php if ($hide_site_name) { print ' class="element-invisible"'; } ?>>
                    <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
                  </h1>
                <?php endif; ?>
              <?php endif; ?>

              <?php if ($site_slogan): ?>
                <div id="site-slogan"<?php if ($hide_site_slogan) { print ' class="element-invisible"'; } ?>>
                  <?php print $site_slogan; ?>
                </div>
              <?php endif; ?>

            </div> <!-- /#name-and-slogan -->
          <?php endif; ?>
          <?php if ($page['header']) : ?>
            <?php print render($page['header']); ?>
          <?php endif; ?>
        </div><!-- EOF: #header-inside-left -->
        <!-- #header-inside-right -->
        <?php if ($page['search_area']): ?>
        <div id="header-inside-right" class="grid_4">
			    <?php print render($page['search_area']); ?>
        </div>
        <?php endif; ?>
        <!-- EOF: #header-inside-right -->
    </div><!-- EOF: #header-inside -->
</div><!-- EOF: #header -->
<!-- #header-menu -->
<div id="header-menu">
	<!-- #header-menu-inside -->
    <div id="header-menu-inside" class="container_12 clearfix">
    	<div class="grid_12">
        <div id="navigation" class="clearfix">
          <?php if ($page['navigation']) :?>
            <?php print drupal_render($page['navigation']); ?>
          <?php else :
          if (module_exists('i18n_menu')) {
            $main_menu_tree = i18n_menu_translated_tree(variable_get('menu_main_links_source', 'main-menu'));
          } else {
            $main_menu_tree = menu_tree(variable_get('menu_main_links_source', 'main-menu'));
          }
          print drupal_render($main_menu_tree);
          endif; ?>
        </div>
      </div>
    </div><!-- EOF: #header-menu-inside -->
</div><!-- EOF: #header-menu -->
<!-- #banner -->
<div id="banner">
	<?php print render($page['banner']); ?>    
</div><!-- EOF: #banner -->
<!-- #content -->
<div id="content">
	<!-- #content-inside -->
    <div id="content-inside" class="container_12 clearfix">
    <?php if ($page['sidebar_first']) :?>
      <!-- #sidebar-first -->
      <div id="sidebar-first" class="grid_2 gird-container">
        <?php print render($page['sidebar_first']); ?>
      </div><!-- EOF: #sidebar-first -->
      <?php endif; ?>
      <?php if ($page['sidebar_first'] && $page['sidebar_second']) { ?>
        <div class="grid_2 gird-container">
      <?php } elseif ($page['sidebar_first'] || $page['sidebar_second']) { ?>
      <div id="main" class="grid_10 gird-container">
		<?php } else { ?>
      <div id="main" class="grid_12">
        <?php } ?>
          <?php if (theme_get_setting('breadcrumb_display','balo360com')): print $breadcrumb; endif; ?>
          <?php if ($page['highlighted']): ?><div id="highlighted"><?php print render($page['highlighted']); ?></div><?php endif; ?>
          <?php if ($messages): ?>
            <div id="console" class="clearfix">
            <?php print $messages; ?>
            </div>
          <?php endif; ?>
          <?php if ($page['help']): ?>
            <div id="help">
            <?php print render($page['help']); ?>
            </div>
          <?php endif; ?>
          <?php if ($action_links): ?>
            <ul class="action-links">
            <?php print render($action_links); ?>
            </ul>
          <?php endif; ?>
			<?php print render($title_prefix); ?>
    <?php if ($title): ?>
    <h1 class="title" id="page-title"><?php print $title ?></h1>
    <?php endif; ?>
    <?php print render($title_suffix); ?>
    <?php if ($tabs): ?><?php print render($tabs); ?><?php endif; ?>
    <?php print render($page['content']); ?>
    <?php print $feed_icons; ?>
      </div><!-- EOF: #main -->
        <?php if ($page['sidebar_second']) :?>
        <!-- #sidebar-second -->
        <div id="sidebar-second" class="grid_4">
        	<?php print render($page['sidebar_second']); ?>
        </div><!-- EOF: #sidebar-second -->
        <?php endif; ?>  
    </div><!-- EOF: #content-inside -->
</div><!-- EOF: #content -->
<!-- #footer -->    
<div id="footer">
	<!-- #footer-inside -->
    <div id="footer-inside" class="container_12 clearfix">
      <?php print render($page['footer']); ?>
    </div><!-- EOF: #footer-inside -->
</div><!-- EOF: #footer -->


</div>